package cc.linker.steplink.crm.merchant.service;

import cc.linker.steplink.crm.merchant.dao.PaymentSetMapper;
import cc.linker.steplink.crm.merchant.pojo.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class PaymentSetService {

    @Autowired
    private PaymentSetMapper paymentSetMapper;

    public Boolean add(Map record) {
        if (1 == paymentSetMapper.insert(record)) {
            return true;
        }
        return false;
    }

    public Boolean edit(Map record) {
        if (1 == paymentSetMapper.edit(record)) {
            return true;
        }
        return false;
    }

    public HashMap<String, Object> getinfo(String orgId) {
        return paymentSetMapper.getInfo(orgId);
    }

    public String getAppIdByOrgId(String orgId) {
        return paymentSetMapper.getAppIdByOrgId(orgId);
    }
}
